package com.soundai.skill.helloworld.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.io.Serializable;

/**
 * 类的描述:   消息Header
 * 项目名称:   SmartLifeHost
 * 类的包名:   com.smart.life.host.entity
 * 创建的人:   nongzike@163.com
 * 创建时间:   2019/8/22 8:53
 * 修改的人:   nongzike@163.com
 * 修改时间:   2019/8/22 8:53
 * 修改备注:
 * version   v1.0
 */
@JsonIgnoreProperties(ignoreUnknown = true) //注册忽略特性
@JsonPropertyOrder({"bizCode", "respCode", "respMsg", "ip", "mac", "userId", "os"})
public class MsgHeader implements Serializable {

    private int os;                     //消息的来源系统  0、主机发出  1、云端发出 2、Android  3、ios  4、微信小程序

    private String version;             //来源系统的版本

    private String ip;                  //Ip地址

    private String mac;                 //Mac地址

    private String msgId;               //消息id

    private int bizCode;                //业务代码

    private int respCode;               //返回码

    private String respMsg;             //返回的提示信息

    private String userId;              //消息发送者的用户id,服务端返回时为服务端标识id

    private String toUserId;            //消息接收者id,发送给服务端可不填

    private String token;               //用于校验通道信息的

    private long timestamp;             //发送时的时间戳

    private String expand;              //扩展字段,以key/value形式存放的json

    public MsgHeader() {
    }

    public int getOs() {
        return os;
    }

    public void setOs(int os) {
        this.os = os;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public int getBizCode() {
        return bizCode;
    }

    public void setBizCode(int bizCode) {
        this.bizCode = bizCode;
    }

    public int getRespCode() {
        return respCode;
    }

    public void setRespCode(int respCode) {
        this.respCode = respCode;
    }

    public String getRespMsg() {
        return respMsg;
    }

    public void setRespMsg(String respMsg) {
        this.respMsg = respMsg;
    }

    public String getToUserId() {
        return toUserId;
    }

    public void setToUserId(String toUserId) {
        this.toUserId = toUserId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public String getExpand() {
        return expand;
    }

    public void setExpand(String expand) {
        this.expand = expand;
    }

    @Override
    public String toString() {
        return "MsgHeader{" +
                "os=" + os +
                ", version='" + version + '\'' +
                ", ip='" + ip + '\'' +
                ", mac='" + mac + '\'' +
                ", msgId='" + msgId + '\'' +
                ", bizCode=" + bizCode +
                ", respCode=" + respCode +
                ", respMsg='" + respMsg + '\'' +
                ", userId='" + userId + '\'' +
                ", toUserId='" + toUserId + '\'' +
                ", token='" + token + '\'' +
                ", timestamp=" + timestamp +
                ", expand=" + expand +
                '}';
    }
}
